package com.hlt.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hlt.entity.*;
import com.hlt.mapper.UserMapper;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Hu_liantian
 * @date 2020-07-21
 */
@Service
public class UserServiceImpl implements UserService{

	@Autowired
	UserMapper mapper;
	
	@Override
	public Shopping_car add(String cuser, String cde, String cname, String ctype, String cnumber,
			String caim, String cneed) {

		return mapper.add(cuser,  cde,  cname,  ctype,  cnumber, caim, cneed);
	}
	
	@Override
	public int reg(Shopping_car u) {
		String maxID = mapper.getMaxID();
		System.out.println(maxID);
		u.setCid(maxID);
		return mapper.reg(u);
	}
	
}
